﻿using DramaEnglish.WPF.ViewModels;
using Open.EMR.UIElements;
using Prism.Commands;
using Prism.Events;
using Prism.Regions;
using Prism.Services.Dialogs;

namespace Open.EMR.ViewModels.Edition
{
    public class UIElementBarViewModel : ViewModelBase
    {

        #region Fields Properties

        #endregion

        #region Constructors
        public UIElementBarViewModel(IRegionManager regionManager, IDialogService dialogService, IEventAggregator ea)
     : base(regionManager, dialogService, ea)
        {
            ////EventAggregator.GetEvent<PubSubEvent<EnumElement>>().Subscribe((x) => {
            ////    var a = 1;
            ////});
        }
        #endregion

        #region Cammands
        public DelegateCommand BlodCommand => new(() => { 
            EventAggregator.GetEvent<PubSubEvent<EnumElement>>().Publish(EnumElement.BlodLabel);
        });
        #endregion

        #region Functions Methods

        #endregion

    }
}
